package cn.b.sky.mes.pp.dao;

import java.util.List;

import cn.b.sky.mes.pp.model.ProductionOrderAttachment;
import org.apache.ibatis.annotations.Param;

public interface ProductionOrderAttachmentDao {

  /**
   * 
   * <strong>Title : selectAttachmentsByProductionNum<br></strong>
   * <strong>Description : </strong>获取生产订单下的附件<br> 
   * <strong>Create on : 2016-7-21 下午4:46:38<br></strong>
   * <p>
   * @param siteCode
   * @param productionOrderNum
   * @return
   * List<ProductionOrderAttachment>
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public List<ProductionOrderAttachment> selectAttachmentsByProductionNum(
      @Param(value="siteCode")String siteCode, @Param(value="productionOrderNum")String productionOrderNum);
  
  /**
   * 
   * <strong>Title : insertProductionOrderAttachment<br></strong>
   * <strong>Description : </strong>保存<br> 
   * <strong>Create on : 2016-7-21 下午4:46:52<br></strong>
   * <p>
   * @param attachment
   * void
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void insertProductionOrderAttachment (ProductionOrderAttachment attachment); 
  
  /**
   * 
   * <strong>Title : deleteAttachmentByProductionNum<br></strong>
   * <strong>Description : </strong>删除生产订单下的附件<br> 
   * <strong>Create on : 2016-7-21 下午4:47:01<br></strong>
   * <p>
   * @param siteCode
   * @param productionOrderNum
   * void
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void deleteAttachmentByProductionNum(
      @Param(value="siteCode")String siteCode, @Param(value="productionOrderNum")String productionOrderNum);
}
